#include <iostream>
#include <jsoncpp/json/json.h>

using namespace std;

int main()
{
    Json::Value root;
    root["x"] = 1;
    root["y"] = 3;
    root["op"] = '+';
    root["info"] = "test: ";

    Json::FastWriter fw;
    string res = fw.write(root);
    cout << res << endl;

    Json::StyledWriter sw;
    string print = sw.write(root);
    cout << print << endl;

    return 0;
}